package cc.shacocloud.luanniao.core.model.po

import org.springframework.data.annotation.CreatedDate
import org.springframework.data.annotation.Id
import org.springframework.data.annotation.LastModifiedDate
import org.springframework.data.relational.core.mapping.Column
import java.time.LocalDateTime

/**
 * 基础模型
 * @author 思追(shaco)
 */
abstract class BasePo {

    /**
     * 主键id
     */
    @Id
    @Column("id")
    var id: Long? = null

    /**
     * 创建时间
     */
    @CreatedDate
    @Column("create_time")
    var createTime: LocalDateTime? = null

    /**
     * 最后更新时间
     */
    @LastModifiedDate
    @Column("last_update_time")
    var lastUpdateTime: LocalDateTime? = null

}